Skip to content

Conversation

kbaikov
Copy link
Contributor

@kbaikov kbaikov commented Aug 6, 2025

Since the minium declared python version is 3.10
we don't need the Union and Option and many
type imports should be done from collections.abc.

so i ran fd --extension py --type f --exec pyupgrade --py310-plus
on the repo.
All changes are automated, i.e. no manual edit.

@kbaikov
Copy link
Contributor Author

kbaikov commented Aug 6, 2025

@jdavid @BenediktSeidl please take a look.

As stated in the message this is pyupgrade and ruff check fix.
No manual edit.

@kbaikov kbaikov force-pushed the mypy-fixes2 branch 3 times, most recently from 0ece131 to e8d61ae Compare August 6, 2025 12:09
Since the minium declared python version is 3.10
we don't need the Union and Option and many
type imports should be done from collections.abc.

so i ran fd --extension py --type f --exec pyupgrade --py310-plus
on the repo.
All changes are automated, i.e. no manual edit.
@jdavid jdavid merged commit 1d9d0be into libgit2:master Aug 6, 2025
8 checks passed
@kbaikov kbaikov deleted the mypy-fixes2 branch August 6, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants